package com.jinzhi.jzyysweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreServiceImpl;
import com.jinzhi.jzapi.certificate.pojo.MySignUpListVo;
import com.jinzhi.jzyysweb.dao.YysSignupDao;
import com.jinzhi.jzyysweb.domain.YysSignupDO;
import com.jinzhi.jzyysweb.service.YysSignupService;
import org.springframework.stereotype.Service;

/**
 * 
 * <pre>
 * 
 * </pre>
 * <small> 2021-05-14 14:23:14 | Long</small>
 */
@Service
public class YysSignupServiceImpl extends CoreServiceImpl<YysSignupDao, YysSignupDO> implements YysSignupService {
    @Override
    public Page<MySignUpListVo> selByUserId(int current, int number, Long userId) {

        // 新建分页
        Page<MySignUpListVo> page = new Page<MySignUpListVo>(current, number);

        // 根据情况，返回分页结果
        return page.setRecords(this.baseMapper.selByUserId(page,userId));
    }
}
